class MusicPlayer(object):
    instance = None

    def __new__(cls, *args, **kwargs):
        if cls.instance is None:
            cls.instance = super().__new__(cls)
        return cls.instance

    def __init__(self,music_name):
        print(f"播放器初始化{music_name}")
        self.music_name=music_name

if __name__ == '__main__':
    player1 = MusicPlayer('普通朋友')
    player2 = MusicPlayer('找自己')
    print(id(player1))
    print(id(player2))